@section('title')
    成为律师 @parent
@show

@section('subcontent')
{{ HTML::script('js/center/become_lawyer.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/vendor/jquery.ui.widget.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.iframe-transport.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.fileupload.js') }}
<!--[if (gte IE 8)&(lt IE 10)]>
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/cors/jquery.xdr-transport.js') }}
<![endif]-->

<div id="mainUserInfo">
<!-- 我的资料 认证为律师 -->
<div class="mod-main mod-comm lefta-box">
    <div class="mt">
		<h3 class="curr">认证律师</h3>
    </div>
    <div class="mc">
    	<div class="user-set userset-lcol">
    		<form id="become_lawyer_form">
			    <div class="form">
			    	<div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_11.png">&nbsp;&nbsp;<span>从业信息</span></div>
			        <div class="form-item">
			            <span class="label">
			              	<span style="color:#004799;padding:10px"></span>执业证号：
			            </span>
			            <div class="fl">
			                <input type="text" class="itxt itxt1" name="license" id="license" value="">
			            </div>
			            <span class="block color9">（提交之后不能修改）</span>
			        </div>
			        <div class="form-item">
			            <span class="label">
			              	<span style="color:#004799;padding:10px"></span>执业机构：
			            </span>
			            <div class="fl">
			                <input type="text" class="itxt itxt1" name="company_name" id="company_name" value="">
			            	
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>执业年限：
			            </span>
			            <div class="fl">
			            	<select name="practice_period" class="selt mr5" id="practice_period">
			            		<option value="1to3" @if ($data['user']['lawyer']['practice_period'] == '1to3') : selected="selected" ? selected="" @endif >1-3年</option>
			            		<option value="3to5" @if ($data['user']['lawyer']['practice_period'] == '3to5') : selected="selected" ? selected="" @endif >3-5年</option>
			            		<option value="5to10" @if ($data['user']['lawyer']['practice_period'] == '5to10') : selected="selected" ? selected="" @endif >5-10年</option>
			            		<option value="10" @if ($data['user']['lawyer']['practice_period'] == '10') : selected="selected" ? selected="" @endif >10年以上</option>
			            	</select>
			            	
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>执业地区：
			            </span>
			            <div class="fl">
			                <select name="province" class="selt mr5" id="province" ></select>
			                <select name="city" class="selt mr5" id="city" style="display: inline-block;"></select>
			                <select name="district" class="selt mr5" id="district" style="display: inline-block;"></select>
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>上传证书：
			            </span>
			            <div class="fl">
							<div class="upload_wrap">
								<span class="btn btn-success fileinput-button">
				                    <span>上传证书</span>
				                    <input id="upload_file" type="file" name="upload_file" multiple 
					                    data-url="{{ Config::get('app.url') }}/file/upload/user"
									    data-sequential-uploads="true" data-disabled="disabled">
				                    <input type="hidden" name="license_file" id="license_file">
				                </span>
								    <div class="upload_img_show" >              
					                  <p class="js_cover upload_preview" style="display:none;">
					                  	<img id='peituImg'  src="" width="300" height="200"/>
					                  </p>
					                  <p class="js_cover_tip tips"></p>
					                </div>
				            </div>
						</div>
						<span class="block color9" style="line-height:18px;">（图片建议尺寸：300像素 * 200像素,尺寸不得超过1M）</span>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/07_03.png">&nbsp;&nbsp;<span>实名认证</span></div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
			            </span>
			            <div class="fl">
			                <input  type="text" class="itxt" maxlength="20" id="realname" name="realname" value="{{ $data['user']['realname'] }}">
			                
			            </div>
			            <span class="block color9">（提交之后不能修改）</span>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:4px"></span>上传身份证：
			            </span>
			            <div class="fl">
							<div class="upload_wrap" style="line-height:20px;">
								<span class="btn btn-success fileinput-button">
				                    <span>上传证件（正面）</span>
				                    <input id="sfz_image_file" type="file" name="upload_file" multiple 
					                    data-url="{{ Config::get('app.url') }}/file/upload/user"
									    data-sequential-uploads="true" data-disabled="disabled">
				                    <input type="hidden" name="ID_img" id="ID_img">
				                </span>
				                <div class="upload_img_show">              
				                  <p class="sfz_js_cover upload_preview" style="display:none;">
				                  	<img id='sfz_imageImg'  src="" width="300" height="200"/>
				                  </p>
				                  <p class="js_cover_tip tips"></p>
				                </div>
				            </div>
						</div>
						<span class="block color9" style="line-height:18px;">（图片建议尺寸：1000像素 * 300像素,尺寸不得超过1M）</span>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/07_06.png">&nbsp;&nbsp;<span>资费设置</span></div>
			        <div class="form-item text_reply">
			            <span class="label" style="margin-top:35px;">
			                <span style="color:#004799;padding:10px"></span>图文咨询：
			            </span>
			            <div class="fl" style="margin:30px 0px 0 0;width:75px;">
			            	<a id="scrollBarTxt" style="text-align:center;">19</a>元 / 次
			                <input type="hidden" class="text_reply_fee" name="text_reply_fee" value="">
			            </div>
			            <div class="index fl" style="width:500px;">

							<input id="range_44" />

			            </div>
			        </div>
			        <div style=" line-height:40px; margin-left:150px; color:#999;margin-top:-20px">24小时内通过图片、文字进行咨询，不限条数</div>
			        <div class="form-item phone_reply">
			            <span class="label " style="margin-top:35px;">
			                <span style="color:#004799;padding:10px"></span>电话咨询：
			            </span>
			            <div class="fl" style="margin-top:30px;width:75px;">
			            	<a id="scrollBarTxt2" class="phone_reply_fee" style="text-align:center;">19</a>元 / 次
			                <input type="hidden" class="phone_reply_fee" name="phone_reply_fee" value="">
			            </div>

			            <div class="index1 fl" style="width:500px;">

							<input id="range_45" />

			            </div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_12.png">&nbsp;&nbsp;<span>擅长领域</span></div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>擅长领域：
			            </span>
			            <div class="fl">
			            	<div class="selectivity"></div>
			                <select name="work_scope" class="selt mr5" id="work_scope"></select>
			                
			                <!-- <span class="mgs">最多只能选3个！</span> -->
			            </div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_13.png">&nbsp;&nbsp;<span>经历案例</span></div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>个人简历：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="introduce" name="introduce" value=""></textarea>
			                
			            </div>
			        </div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>执业经历：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="experience" name="experience" value=""></textarea>
			               </div>
			        </div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>成功案例：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="law_cases" name="law_cases" value=""></textarea>
			               </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                &nbsp;
			            </span>
			            <div class="fl">
			            	{{ Form::token() }}
			                <a href="javascript:void(0)" class="btn-5 inpbg" id="user_subReview" style="width:150px;height:40px;font-size: 16px;line-height: 40px;">
			                    提交审核
			                </a>
			            </div>
			        </div>
			    </div>
			    <input type="hidden" name="address" id="address" value="无">
			</form>
		</div>
    </div>
</div>
</div>

<script type="text/javascript">
	var user_lawyer_url = "{{ route('center.customer.info') }}";
	var jumpUrl ="{{ Config::get('app.url') }}";
	var become_lawyer_url = "{{route('center.customer.become_lawyer')}}"
	//上传的参数
	var token = $("input:[name='_token']").val();
	var userId = "{{ $data['user']['id'] }}"
	//省市城的参数
	var province_param = "{{ $data['user']['province'] }}";
	var city_param = "{{ $data['user']['city'] }}";
	var district_param = "{{ $data['user']['district'] }}";
	var scrollBarTxt = $("#scrollBarTxt").text()
	var scrollBarTxt2 = $('#scrollBarTxt2').text();
$(document).ready(function () {

	$(".irs-min").css("visibility","visible")
	var $range = $("#range_44"),
		$result = $("#result_44");
	var track = function (data) {
		delete data.input;
		delete data.slider;
		if (JSON) {
			$result.html(JSON.stringify(data, null, 2));
		} else {
			$result.html(data.toString());
		}
	};
	$range.ionRangeSlider({
		type: "double",
		min: 19,
		max: 199,
		from: 19,
		to: scrollBarTxt,
		step: 1,
		grid: false,
		onStart: track,
		onChange: track,
		onFinish: track,
		onUpdate: track
	});
	
	var $range = $("#range_45"),
		$result = $("#result_45");

	var track = function (data) {
		delete data.input;
		delete data.slider;
		if (JSON) {
			$result.html(JSON.stringify(data, null, 2));
		} else {
			$result.html(data.toString());
		}
	};
	$range.ionRangeSlider({
		type: "double",
		min: 19,
		max: 199,
		from: 19,
		to: scrollBarTxt2,
		step: 1,
		grid: false,
		onStart: track,
		onChange: track,
		onFinish: track,
		onUpdate: track
	});

	
});
</script>
{{ HTML::style('css/ion.rangeSlider.css')}}
{{ HTML::style('css/ion.rangeSlider.skinHTML5.css')}}
{{ HTML::script('js/ion.rangeSlider.js') }}
</script>
@show